﻿package org.cubeland.game.core.drawing.yuki 
{
	import flash.display.Bitmap;
	import org.papervision3d.materials.BitmapMaterial;
	import org.papervision3d.materials.utils.MaterialsList;
	import org.papervision3d.objects.primitives.Cube;
	/**
	 * CubeLand.org Game
	 * @author Duarte Peixinho
	 */
	public class DrawYukiHand extends Cube
	{
		
		[Embed(source = '../../../assets/yuki/handTextureFront.jpg')]
		private var YukiHandFront:Class;		
		[Embed(source = '../../../assets/yuki/handTextureTop.jpg')]
		private var YukiHandTop:Class;
		[Embed(source = '../../../assets/yuki/handTexture.jpg')]
		private var YukiHandTexture:Class;	
		[Embed(source = '../../../assets/yuki/handTexturePalm.jpg')]
		private var YukiHandTexturePalm:Class;	
		
		public function DrawYukiHand() 
		{
			super(drawMaterials(), 20, 40, 40);	
		}
		
		private function drawMaterials():MaterialsList {			
			var BHand:Bitmap = new YukiHandTexture();
			var BFront:Bitmap = new YukiHandFront();
			var BTop:Bitmap = new YukiHandTop();
			var BPalm:Bitmap = new YukiHandTexturePalm();
			
			var BHandD:BitmapMaterial = new BitmapMaterial(BHand.bitmapData);	
			var BFrontD:BitmapMaterial = new BitmapMaterial(BFront.bitmapData);
			var BTopD:BitmapMaterial = new BitmapMaterial(BTop.bitmapData);		
			var BPalmD:BitmapMaterial = new BitmapMaterial(BPalm.bitmapData);		

			BHandD.smooth = true;			
			BFrontD.smooth = true;
			BTopD.smooth = true;
			BPalmD.smooth = true;
			
			var m:MaterialsList = new MaterialsList( {right: BPalmD,left: BTopD,top: BHandD,bottom: BHandD,back: BFrontD,front:BHandD} );			
			return m;
		}
		
		public function happy():void {
			
		}
		
		public function sad():void {
			
		}
		
		public function surprised():void {
			
		}
		
		public function normal():void {
			
		}		
		
	}

}